<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>权限列表</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.tabfont01 {
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}

.font051 {
	font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}

.font201 {
	font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}

.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}

html {
	overflow-x: auto;
	overflow-y: auto;
	border: 0;
}
-->
</style>

<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/backSelect.js"></script>

</head>
<body>
	<table id="mainpage" width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="30">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td height="62" background="images/nav04.gif">
							<%-- 
							<span class="newfont07">&nbsp;&nbsp;&nbsp;&nbsp;选择：
								<a onclick="checkAll('pid')" href="javascript:void(0)" class="right-font08">全选</a>-
								<a onclick="checkAllNo('pid')" href="javascript:void(0)" class="right-font08">反选</a>
							</span> 
							<input name="Submit" type="button" onclick="XXX()" class="right-button08" value="删除所选信息" />
							--%>
							<span class="newfont07">
								&nbsp;&nbsp;&nbsp;&nbsp;
								权限列表
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<a class="right-font08" href="admin/rolePermissionAdd_1?id=${requestScope.roleId }">增加权限</a> 
							</span> 
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
								<%-- <tr><td height="20"></td></tr> --%>
								<tr>
									<td height="40" class="font42">
									<form action="admin/rolePermissionDel"  name="checkIds">
										<table width="100%" border="0" cellpadding="4" align="center" cellspacing="1" bgcolor="#464646" class="newfont03">
											<tr><td height="20" colspan="4" align="center" bgcolor="#EEEEEE" class="tablestyle_title" >角色权限列表</td></tr>
											<tr>
												<td width="5%" align="center" bgcolor="#EEEEEE">选择</td>
												<td width="30%" height="20" align="center" bgcolor="#EEEEEE">权限名称</td>
												<td width="40%" height="20" align="center" bgcolor="#EEEEEE">权限地址</td>
												<td width="25%" height="20" align="center" bgcolor="#EEEEEE">删除</td>
											</tr>
											<c:forEach var="p" items="${requestScope.permissions}" >
												<tr align="center">
													<td width="5%" align="center" bgcolor="#EEEEEE"><input type="checkbox" name="pid" value="${ p.pid }" /></td>
													<td width="30%" height="20" align="center" bgcolor="#EEEEEE">${p.pname }</td>
													<td width="40%" height="20" align="left" bgcolor="#EEEEEE">${p.pdesc }</td>
													<td width="25%" align="center" bgcolor="#EEEEEE">
														<a href="${p.pdesc }">查看</a>&nbsp;|&nbsp;
														<a href="admin/rolePermissionDel?pid=${p.pid}&id=${requestScope.roleId }">删除</a>
													</td>
												</tr>
											</c:forEach>
										</table>
									</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>
